package jp.tkym.labs.swing3d.drawer;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;



class DrawText implements DrawG2D{
	String text = "";
	Point p = new Point(0, 0);
	Color c = Color.WHITE;
	
	DrawText(String text, Point p, Color color){
		this.p = p;
		this.text = text;
		this.c = color;
	}
	
	@Override
	public void draw(Graphics2D g2d) {
		g2d.setColor(c);
		g2d.drawString(text, p.x, p.y);
	}
}